/*
 * @Author: lsp<286212824@qq.com>
 * @Date: 2020-07-17 17:13:11
 * @LastEditTime: 2020-07-24 10:40:46
 * @Description: file content
 */ 
import req from '@/utils/request';

// 固定资产 - 某仓库资产分类列表 https://www.showdoc.cc/829049085123350?page_id=4527252299762417
export const getCategoryIndex = params => req.get('/isvmobile/Category/index', { params });

// 固定资产 - 获取所在部门拥有的仓库 https://www.showdoc.cc/829049085123350?page_id=4527287008363046
export const getConsumableHaveWarehouse = params => req.get('/isvmobile/Consumable/haveWarehouse', { params });
export const getAssetHaveWarehouse = params => req.get('/isvmobile/Asset/haveWarehouse', { params });

// 固定资产 - 获取领取部门
// https://www.showdoc.cc/829049085123350?page_id=4527293847530983
// https://www.showdoc.cc/829049085123350?page_id=4527597585352188
export const getConsumableReceiveDept = params => req.get('/isvmobile/Consumable/receiveDept', { params });
export const getAssetReceiveDept = params => req.get('/isvmobile/Asset/receiveDept', { params });

// 固定资产 - 资产领用列表 https://www.showdoc.cc/829049085123350?page_id=4527298821872449
export const getAssetReceiveIndex = params => req.get('/isvmobile/Asset/receiveIndex', { params });

// 固定资产 - 领用资产 https://www.showdoc.cc/829049085123350?page_id=4527322338968788
export const postAssetReceive = params => req.post('/isvmobile/Asset/receive', params);
